<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
	<title>{$title|default:'Master Domino Мастер-Домино. Информационные магистрали'}</title>
	<meta name="keywords" content="{$keywords}" />
	<meta name="description" content="{$descr}" />
	<link href="/css/all.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="/js/jquery.carousel.js"></script>
	<script type="text/javascript" src="/js/drop-down.js"></script>
	<!--[if lte IE 9]><link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /><script type="text/javascript" src="js/respond.min.js"></script><![endif]-->
</head>
{function showChildPages}
	{$showThisLevel = false}
	{foreach $pages as $pnm => $page}
		{if !$pnm} {continue} {/if}
		{if $page[''].menu_name[0] != '!'}
			{if !$showThisLevel}
				{$showThisLevel = true}
				<ul>							
			{/if}
			<li>
				{if $page[''].hidden}
					{$page[''].menu_name}
				{else}
					<a href='{$page[''].link}'>{$page[''].menu_name}</a>				
				{/if}
				{showChildPages pages=$page}
			</li>
		{else}
			{showChildPages pages=$page}
		{/if}
	{/foreach}
	{if $showThisLevel}
		</ul>
	{/if}
{/function}
<body>
	<div id="wrapper">
		<div class="w1">
			<div class="w2">
				<div class="w3">
					<div id="header">
						<div class="h-box">
							<h1 class="logo"><a href="/">Master Domino Мастер-Домино. Информационные магистрали</a></h1>
							<strong class="name">Компания Мастер-Домино. Информационные магистрали</strong>
						</div>
						<div class="h-block">
							<ul class="tools">
								<li><a href="/map" class="map">Map</a></li>
								<li><a href="/feedback" class="email">E-mail</a></li>
							</ul>
							{$phones}
							{include 'search_block.tpl'}
						</div>
					</div>
					<div id="main">
						
						{include 'nav_top.tpl'}
						
						<div class="container">
							<div class='crumbs'>
								<a href='/'>ГЛАВНАЯ</a>
								{foreach $crumbs as $crumb}
									| 
									{if $crumb@last}
										{$crumb.name}
									{else}
										{if strlen($crumb.link) > 0}
											<a href='{$crumb.link}'>{$crumb.name|upper}</a> 
										{else}
											{$crumb.name|upper}
										{/if}
									{/if}
								{/foreach}
							</div>
							<h1>{$name}</h1>
							
							{include $tpl}
						</div>
					</div>
					<div id="footer">
						{include 'nav_bottom.tpl'}
						<div class="f-block">
							<p>2013 ООО &ldquo;МАСТЕР ДОМИНО&rdquo; ИНФОРМАЦИОННЫЕ МАГИСТРАЛИ</p>
							<dl class="seadesing">
								<dt>Создание сайта</dt>
								<dd><a href="http://www.seadesign.ru">SeaDesing</a></dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>